package com.shen.util;

import java.text.DecimalFormat;

/**
 * Author:shen
 * CreateDate:2020/6/11.
 * Function:
 */
public class Common {
    public static String dataFormat(double data){
        DecimalFormat decimalFormat=new DecimalFormat("#0.0");
        return decimalFormat.format(data);
    }
    public static String dataFormatTwo(double data){
        DecimalFormat decimalFormat=new DecimalFormat("#0.0000");
        return decimalFormat.format(data);
    }

    public static double sub(double money,double cost){
        return money+cost;
    }


}
